<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!--<meta name="viewport" content="width=device-width,initial-scale=1.0">-->
    <!-- 在 head 标签中添加 meta 标签，并设置 viewport-fit=cover 值 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"/>
    <!-- 开启顶部安全区适配 -->
    <van-nav-bar safe-area-inset-top />
    <!-- 开启底部安全区适配 -->
    <van-number-keyboard safe-area-inset-bottom />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico"/>
    <title>微信</title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
<script src="https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js"></script>
<script>
  var vConsole = new VConsole({
    defaultPlugins: ['network'],
    disableLogScrolling: true
  });
  vConsole.pluginList.network.scrollToBottom = function() {
    if (!this.vConsole.option.disableLogScrolling) {
      var $box = vConsole.$.one('.vc-content');
      $box.scrollTop = $box.scrollHeight - $box.offsetHeight;
    }
  }
</script>
<script>
  window.onload = function () {
    let iconFontPath = "https://at.alicdn.com/t/font_2386034_d92ltoxfydv"
    dynamicLoading.css(iconFontPath)
    dynamicLoading.js(iconFontPath)
  }
  var dynamicLoading = {
    css: function(path){
      if(!path || path.length === 0){
        throw new Error('argument "path" is required !');
      }
      var head = document.getElementsByTagName('head')[0];
      var link = document.createElement('link');
      link.href = path + ".css";
      link.rel = 'stylesheet';
      link.type = 'text/css';
      head.appendChild(link);
    },
    js: function(path){
      if(!path || path.length === 0){
        throw new Error('argument "path" is required !');
      }
      var head = document.getElementsByTagName('head')[0];
      var script = document.createElement('script');
      script.src = path + ".js";
      script.type = 'text/javascript';
      head.appendChild(script);
    }
  }
</script>